package cn.domain;

import java.io.Serializable;
import java.util.Set;

/**
 * Created by Administrator on 2017/4/1 0001.
 */

/**
 * 板块
 */
public class Forum implements Serializable {
    private Long id;
    private String name;//版块名称
    private String description;//板块说明
    private int position;//序列号，用于排序
    private Set<Topic> topic;//帖子集合
    private int topicCount;//帖子数量
    private int articleCount;//文章数量
    private Topic lastTopic;//当前板块中最后一个主题

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public Set<Topic> getTopic() {
        return topic;
    }

    public void setTopic(Set<Topic> topic) {
        this.topic = topic;
    }

    public int getTopicCount() {
        return topicCount;
    }

    public void setTopicCount(int topicCount) {
        this.topicCount = topicCount;
    }

    public int getArticleCount() {
        return articleCount;
    }

    public void setArticleCount(int articleCount) {
        this.articleCount = articleCount;
    }

    public Topic getLastTopic() {
        return lastTopic;
    }

    public void setLastTopic(Topic lastTopic) {
        this.lastTopic = lastTopic;
    }
}
